ssh-keygen -t rsa

for host in 0 1 2; do
    hostname=hadoop10$host
    ssh-copy-id $hostname
done
